'use strict';

/**
 * @param {Egg.Application} app - egg application
 */

module.exports = app => {
    const { router, controller } = app;
    router.post("/videos/monitorPartners/add", controller.videos.monitorPartners.add);
    router.get("/videos/monitorPartners/list", controller.videos.monitorPartners.list);
    router.delete("/videos/monitorPartners/delete", controller.videos.monitorPartners.delete);
    router.put("/videos/monitorPartners/update", controller.videos.monitorPartners.update);
    router.put("/videos/monitorPartners/status", controller.videos.monitorPartners.status);
    router.get("/videos/monitorPartners/hasUnusual", controller.videos.monitorPartners.hasUnusual);
    router.get("/videos/monitorPartners/datasPan", controller.videos.monitorPartners.datasPan); // 控制面板数据
    router.get("/videos/monitorPartners/dayData", controller.videos.monitorPartners.dayData); // 控制板当天数据




    router.get("/videos/logs/list", controller.videos.logs.list);
    router.get("/videos/logs/logsClear", controller.videos.logs.logsClear);
    router.get("/videos/logs/unusual", controller.videos.logs.unusual);
    router.get("/videos/logs/unusualClear", controller.videos.logs.unusualClear);
    router.get("/videos/logs/monitorTypes", controller.videos.logs.monitorTypes);
    router.post("/videos/logs/mocking", controller.videos.logs.mocking); // 控制板当天数据

    // 模拟测试
    router.get("/videos/logs/monitoring", controller.videos.monitorPartners.monitoring);

};